import request from '@/utils/request'


// 管线破坏等级划分查询
export function getAllPdLevel (query) {
    return request({
      url: '/pdLevel/getAllPdLevel',
      method: 'get',
      params: query
    })
  }

//管线破坏等级划分添加或修改
export function saveOrUpdatePdLevel (data) {
    return request({
      url: '/pdLevel/saveOrUpdatePdLevel',
      method: 'post',
      data: data
    })
  }

  //管线破坏等级划分删除
  export function deletePdLevelById (query) {
    return request({
      url: '/pdLevel/deletePdLevelById',
      method: 'get',
      params: query
    })
  }

  // 地下管网复杂性计算-易损性比对区间查询
export function getAllPvRange (query) {
    return request({
      url: '/pdLevel/getAllPvRange',
      method: 'get',
      params: query
    })
  }

//地下管网复杂性计算-易损性比对区间添加或修改
export function saveOrUpdatePvRange (data) {
    return request({
      url: '/pdLevel/saveOrUpdatePvRange',
      method: 'post',
      data: data
    })
  }

  //地下管网复杂性计算-易损性比对区间删除
  export function deletePvRangeById (query) {
    return request({
      url: '/pdLevel/deletePvRangeById',
      method: 'get',
      params: query
    })
  }